/*
	File:		TurretBot.cpp
	Author:		Ben Feldmann
	Purpose:	Class to manage game TurretBot enemies
*/

#include "TurretBot.h"
#include "SGD Wrappers/CSGD_TextureManager.h"


TurretBot::TurretBot()
{
	SetHealth(250.0f);
	SetDifficulty(5);
	SetX(1000);
	SetY(600);
	SetWidth(32);
	SetHeight(32);
	SetTextureID(CSGD_TextureManager::GetInstance()->LoadTexture(_T("Graphics/Dummy Images/turretEnemy.png")));
}

TurretBot::~TurretBot() 
{	
	if(GetTextureID() != -1 )
	{
		CSGD_TextureManager::GetInstance()->UnloadTexture(GetTextureID());
		SetTextureID(-1);
	}
}

void TurretBot::Update(float elapsed) 
{

}

void TurretBot::Render()
{
	if(GetTextureID() != -1)
	{
		CSGD_TextureManager::GetInstance()->Draw(GetTextureID(), int(GetX()), int(GetY()));
	}
}

//bool TurretBot::CheckCollision(IEntity* base)
//{
//	throw "Not yet implemented";
//}

void TurretBot::Attack()
{
	throw "Not yet implemented";
}
